package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.VideoDao;
import com.platform.entity.VideoEntity;
import com.platform.service.VideoService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-30 14:37:50
 */
@Service("videoService")
public class VideoServiceImpl implements VideoService {
    @Autowired
    private VideoDao videoDao;

    @Override
    public VideoEntity queryObject(Integer id) {
        return videoDao.queryObject(id);
    }

    @Override
    public List<VideoEntity> queryList(Map<String, Object> map) {
        return videoDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return videoDao.queryTotal(map);
    }

    @Override
    public int save(VideoEntity video) {
        return videoDao.save(video);
    }

    @Override
    public int update(VideoEntity video) {
        return videoDao.update(video);
    }

    @Override
    public int delete(Integer id) {
        return videoDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return videoDao.deleteBatch(ids);
    }
}
